import App from './App'
import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persist-uni'
import uviewPlus from '@/uni_modules/uview-plus'

import { createSSRApp } from 'vue'
export function createApp() {
  const pinia = createPinia().use(piniaPluginPersistedstate)
  const app = createSSRApp(App).use(pinia.install)
	app.use(uviewPlus)
  return {
    app
  }
}